﻿namespace DomainCommons.Models
{
    public class SoftDelete : ISoftDelete, IHasDeletionTime
    {
        public DateTime? DeletionTime { get; set; }
        public bool IsDeleted { get; private set; }
        public void SoftDeleted()
        {
            this.IsDeleted = true;
            this.DeletionTime = DateTime.Now;
        }
    }
}
